package com.wing.product.model.response;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.wing.mybatis.common.BaseEntity;
import com.wing.utils.ExcelExport;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ProductVO extends BaseEntity {

    /**
     * ID
     */
    private Long id;



    @ExcelExport(value = "物料名称", sort = 1)
    private String skuName;

    @ExcelExport(value = "物料编码", sort = 2)
    private String skuCode;


    @ExcelExport(value = "物料规格", sort = 3)
    private String skuSpec;

    @ExcelExport(value = "物料类别", sort = 4)
    private String productTypeName;

    @ExcelExport(value = "库存", sort = 5)
    private BigDecimal quantity;


    @ExcelExport(value = "添加时间", sort = 6)
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

}
